package com.xishu.dao.jpa;

import com.xishu.entity.shop.PayType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface PayTypeDao extends JpaRepository<PayType, Long>, JpaSpecificationExecutor<PayType> {
    @Query("select max(type) from  pay_type  where shopId=:shopId and entity = 1 and flag_delete = 0")
    public int maxPayType(Long shopId);
}
